<include file="./App/Admin/View/Common/header.html"/>
    <!-- Start Main Wrapper -->
    <div id="mws-wrapper">
    
        <!-- Necessary markup, do not remove -->
        <div id="mws-sidebar-stitch"></div>
        <div id="mws-sidebar-bg"></div>
        
        <!-- Sidebar Wrapper -->
        <div id="mws-sidebar">
        
            <!-- Searchbox -->
            <div id="mws-searchbox" class="mws-inset">
                <form action="http://www.malijuthemeshop.com/themes/mws-admin/1.5/typography.html">
                    <input type="text" class="mws-search-input" />
                    <input type="submit" class="mws-search-submit" />
                </form>
            </div>
            
            <!-- Main Navigation -->
            <div id="mws-navigation">
                <include file="./App/Admin/View/Common/left_nav.html"/>
            </div>            
        </div>
        
        <!-- Main Container Start -->
        <div id="mws-container" class="clearfix">
        
            <!-- Inner Container Start -->
            <div class="mws-panel grid_8">
                <div class="mws-panel-header">
                    <span><i class="icon-table"></i> 浏览分类</span>
                </div>
                <div class="mws-panel-body no-padding">
                    <table class="mws-datatable-fn mws-table">
                        <thead>
                            <tr>
                                <th>抽屉ID</th>
                                <th>抽屉名称</th>
                                <th>抽屉简介</th>
                                <th>抽屉封面</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <foreach name="data" item="vo">
                                <tr>
                                <td>{$vo['id']}</td>
                                <td>{$vo['title']}</td>
                                <td>{$vo['intro']}</td>
                                <td><img src="__PUBLIC__/Uploads/{$vo['cover']|default="drawer_default.jpg"}"</td>
                                <td>
                                <if condition="$vo['status'] eq 1">
                                    可用
                                    <else/>
                                    不可用
                                </if>
                                </td>
                                <td><a style="color:black;padding-left:5px;padding-right:5px;" href='{:U('Drawer/update','id='.$vo['id'])}'>修改</a> | 
                                <if condition="$vo['status'] eq 1">
                                    <a style="color:black;padding-left:5px;padding-right:5px;" href='{:U('Drawer/delete_doit','Drawerid='.$vo['id'])}' onclick="javascript:return confirm('确定要删除么');">禁用</a>
                                    <else/>
                                    <a style="color:black;padding-left:5px;padding-right:5px;" href='{:U('Drawer/active_doit','Drawerid='.$vo['id'])}' onclick="javascript:return confirm('确定要启用么');">启用</a>
                                </if>
                                 </td>
                                </tr>
                            </foreach>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- Inner Container End -->
                       
            <!-- Footer -->
<include file="./App/Admin/View/Common/footer.html"/>